import request from "../utils/request";

//查询教师 学生
export const searchUserList = data => {
    return request({
        method: 'POST',
        url: '/user/findPageUser',
        data
    })
}
//删除账号
export const deleteUser = id => {
    return request({
        method: 'GET',
        url: '/user/deleteById?userId=' + id
    })
}
//分配班级
export const distributionClass = data => {
    return request({
        method: 'POST',
        url: '/user/setClass',
        data
    })
}
//分配实验室
export const distributionLaboratory = data => {
    return request({
        method: 'POST',
        url: '/user/assignment',
        data
    })
}
//审核学生
export const examineStudent = data => {
    return request({
        method: 'POST',
        url: '/user/changeStatus',
        data
    })
}
//新建教师
export const addTeacher = data => {
    return request({
        method: 'POST',
        url: '/user/addTheater',
        data
    })
}
//编辑教师
export const editTeacher = data => {
    return request({
        method: 'POST',
        url: '/user/editTheater',
        data
    })
}
//x新建学生
export const addStudent = data => {
    return request({
        method: 'POST',
        url: '/user/addStudent',
        data
    })
}
